//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-03B
TN_Widget.CreateTable([['The Church & The Afghan Whigs','Keswick Theatre','Glenside, PA','Tuesday','6/18/2024','8:00 PM','6251972','The-Church---The-Afghan-Whigs-6-18-2024'],['The Church & The Afghan Whigs','Brooklyn Paramount','Brooklyn, NY','Thursday','6/20/2024','7:00 PM','6251973','The-Church---The-Afghan-Whigs-6-20-2024'],['The Church & The Afghan Whigs','Royale Boston','Boston, MA','Friday','6/21/2024','7:00 PM','6251974','The-Church---The-Afghan-Whigs-6-21-2024'],['The Church & The Afghan Whigs','Lincoln Theatre - DC','Washington, DC','Saturday','6/22/2024','7:15 PM','6251975','The-Church---The-Afghan-Whigs-6-22-2024'],['The Church & The Afghan Whigs','Danforth Music Hall Theatre','Toronto, Canada','Monday','6/24/2024','6:00 PM','6251976','The-Church---The-Afghan-Whigs-6-24-2024'],['The Church & The Afghan Whigs','Majestic Theatre - MI','Detroit, MI','Tuesday','6/25/2024','7:00 PM','6251977','The-Church---The-Afghan-Whigs-6-25-2024'],['The Church & The Afghan Whigs','HI-FI Annex','Indianapolis, IN','Thursday','6/27/2024','6:00 PM','6251978','The-Church---The-Afghan-Whigs-6-27-2024'],['The Church & The Afghan Whigs','Vic Theatre','Chicago, IL','Friday','6/28/2024','7:00 PM','6251979','The-Church---The-Afghan-Whigs-6-28-2024'],['The Church & The Afghan Whigs','First Avenue','Minneapolis, MN','Sunday','6/30/2024','7:15 PM','6251980','The-Church---The-Afghan-Whigs-6-30-2024'],['The Church & The Afghan Whigs','Ogden Theatre','Denver, CO','Tuesday','7/2/2024','8:00 PM','6251981','The-Church---The-Afghan-Whigs-7-2-2024'],['The Church & The Afghan Whigs','Mishawaka Amphitheatre','Bellvue, CO','Wednesday','7/3/2024','7:30 PM','6246957','The-Church---The-Afghan-Whigs-7-3-2024'],['The Church & The Afghan Whigs','The Showbox','Seattle, WA','Friday','7/5/2024','7:30 PM','6251982','The-Church---The-Afghan-Whigs-7-5-2024'],['The Church & The Afghan Whigs','McMenamins Crystal Ballroom','Portland, OR','Saturday','7/6/2024','8:00 PM','6251922','The-Church---The-Afghan-Whigs-7-6-2024'],['The Church & The Afghan Whigs','The Fillmore - San Francisco','San Francisco, CA','Tuesday','7/9/2024','8:00 PM','6251985','The-Church---The-Afghan-Whigs-7-9-2024'],['The Church & The Afghan Whigs','The Observatory - North Park','San Diego, CA','Thursday','7/11/2024','7:15 PM','6251986','The-Church---The-Afghan-Whigs-7-11-2024'],['The Church & The Afghan Whigs','House Of Blues - Anaheim','Anaheim, CA','Friday','7/12/2024','6:00 PM','6251989','The-Church---The-Afghan-Whigs-7-12-2024'],['The Church & The Afghan Whigs','The United Theater on Broadway - Los Angeles','Los Angeles, CA','Saturday','7/13/2024','7:15 PM','6251991','The-Church---The-Afghan-Whigs-7-13-2024']],'Afghan Whigs','http://www.ticketnetwork.com/ticket/Afghan-Whigs-events.aspx');